package com.gxa.ehome.Command1;

public class Stereo {
    //家用音响
    static int volume=0;//音量

    public void On(){
        System.out.println("Stereo On");
    }
    public void Off(){
        System.out.println("Stereo Off");
    }
    public void SetCd(){
        System.out.println("Stereo SetCd");
    }
    public void SetVol(int vol){
        volume=vol;
        System.out.println("Stereo volume="+volume);
        //根据音量设置值

    }
    public int GetVol(){
        return volume;
        //获得音量的值
    }

}
